package com.itheima.service.impl;

import com.itheima.dao.StudentDao;
import com.itheima.dao.impl.StudentDaoImpl;
import com.itheima.service.StudentService;

/**
 * @author cp
 * @className StudentServiceImpl
 * @description TODO
 * @create 2020/12/4 15:07
 **/
public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao;

    public StudentServiceImpl(){
        System.out.println("StudentServiceImpl创建了！");
    }

    public void study() {
        StudentDao studentDao = new StudentDaoImpl();
        studentDao.study();
    }

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

}
